package com.mate.cloud.message.config;

import com.mate.cloud.common.config.AbstractMessageSourceConfig;
import org.springframework.context.annotation.Configuration;

/**
 * 配置国际化
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2024/5/24 16:11
 * @updateUser: MI
 * @updateTime: 2024/5/24 16:11
 * @updateRemark: 修改内容
 * @version: v1.0
 */
@Configuration
public class MessageConfig extends AbstractMessageSourceConfig {
    /**
     * 异常消息模板文件
     */
    private static final String[] MESSAGE_TEMPLATE_PATH = {"classpath:messages/messages"};

    @Override
    protected String[] getBaseNames() {
        return MESSAGE_TEMPLATE_PATH;
    }
}
